import {
  presetMini,
  defineConfig,
  presetAttributify,
  presetIcons,
} from 'unocss';

export default defineConfig({
  presets: [
    presetMini(),
    presetAttributify(),
    presetIcons({
      collections: {
        mdi: () => import('@iconify-json/mdi/icons.json').then(i => i.default),
      },
    }),
  ],
  shortcuts: [['flex-center', 'flex justify-center items-center']],
  theme: {
    colors: {
      primary: '#197ce0',
      midnight: '#1c344f',
      warning: '#faad14',
      success: '#52c41a',
    },
  },
});
